package com.Ajava1801D.设计模式.代理模式.动态代理.JDK代理;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2020/10/12  14:25
 * 描述:
 */
public class My1801InvocationHandler02 implements InvocationHandler {


    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {

        System.out.println("========获取Connection");

        System.out.println("========处理数据结果集");


        Object o = method.getReturnType().newInstance();

        o="65156656565---->"+args[0];
        return o;
    }


}
